<?php

$defaultConf = array(
	'init' => array(
		'enableCHashCache' => TRUE,
		'appendMissingSlash' => 'ifNotFile,redirect[301]',
		'enableUrlDecodeCache' => TRUE,
		'enableUrlEncodeCache' => TRUE,
		'disableErrorLog' => TRUE,
		'emptyUrlReturnValue' => \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('TYPO3_SITE_URL'),
	),
	'pagePath' => array(
		'type' => 'user',
		'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
		'spaceCharacter' => '-',
		'languageGetVar' => 'L',
		'expireDays' => 7,
		'rootpage_id' => 1,
		'error404_id' => 22,
	),
	'redirects' => array(
	),
	'preVars' => array(
		'0' => array(
			'GETvar' => 'L',
			'valueMap' => array(
				'km' => '1',
			),
			'noMatch' => 'bypass'
		),
	),
	'fixedPostVars' => array(
		'newDetailConfiguration' => array(
			array(
				'GETvar' => 'tx_news_pi1[news]',
				'lookUpTable' => array(
					'table' => 'tx_news_domain_model_news',
					'id_field' => 'uid',
					'alias_field' => 'title',
					'addWhereClause' => ' AND NOT deleted',
					'useUniqueCache' => 1,
					'useUniqueCache_conf' => array(
						'strtolower' => 1,
						'spaceCharacter' => '-',
					),
					'autoUpdate' => 1,
					'expireDays' => 180,
				),
			),
		),
		'14' => 'newsDetailConfiguration'
	),
	'postVarSets' => array(
		'_DEFAULT' => array(
			'article' => array(
				array(
					'GETvar' => 'tx_news_pi1[action]',
					'noMatch' => 'bypass',
				),
				array(
					'GETvar' => 'tx_news_pi1[controller]',
					'noMatch' => 'bypass',
				),
				array(
					'GETvar' => 'tx_news_pi1[news]',
					'lookUpTable' => array(
						'table' => 'tx_news_domain_model_news',
						'id_field' => 'uid',
						'alias_field' => 'title',
						'addWhereClause' => ' AND NOT deleted',
						'useUniqueCache' => 1,
						'useUniqueCache_conf' => array(
							'strtolower' => 1,
							'spaceCharacter' => '-',
						),
					),
				),
			),
		),
	),
	'fileName' => array (
		'defaultToHTMLsuffixOnPrev' => false,
		'index' => array(
			'rss.xml' => array(
				'keyValues' => array(
					'type' => 100,
				),
			),
			'print' => array(
				'keyValues' => array(
					'type' => 98,
				),
			),
		),
	),
);

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array(
	'_DEFAULT' => $defaultConf,
	'local.pncaa.org' => '_DEFAULT',
	'www.local.pncaa.org' => 'local.pncaa.org',
	'dev.pncaa.org' => '_DEFAULT',
	'www.dev.pncaa.org' => 'dev.pncaa.org',
	'pncaa.org' => '_DEFAULT',
	'www.pncaa.org' => 'pncaa.org',
);